import Vue from 'vue'
import VueRouter from 'vue-router'
import App from '../App.vue'
import Msite from '../pages/Msite/Msite.vue'
import Search from '../pages/Search/Search.vue'
import Order from '../pages/Order/Order.vue'
import Profile from '../pages/Profile/Profile.vue'


Vue.use(VueRouter)
Vue.use(Msite)
Vue.use(Search)
Vue.use(Order)
Vue.use(Profile)

const routes = [

    { path: '/msite', component: Msite },
    { path: '/search', component: Search },
    { path: '/order', component: Order },
    { path: '/profile', component: Profile },
    { path: '/', redirect: '/msite' }
]

const router = new VueRouter({
    mode: 'history',
    routes
})

export default router